package org.squabble.web.admin;

import java.io.Serializable;
import java.util.Date;

import org.springmodules.validation.bean.conf.loader.annotation.handler.NotBlank;
import org.springmodules.validation.bean.conf.loader.annotation.handler.NotNull;
import org.springmodules.validation.bean.conf.loader.annotation.handler.ValidatorRef;

@ValidatorRef("newsEditValidator")
public class NewsEditCommand implements Serializable {

	private static final long serialVersionUID = -2169025314119494401L;

	protected Long articleId;

	@NotBlank
	protected String title;

	protected String byline;

	@NotBlank
	protected String content;

	@NotNull
	protected Date displayDate;

	@NotNull
	protected Date displayTime;

	protected boolean replyable = true;

	protected boolean announcement = false;

	@NotNull
	protected String user;

	protected boolean delete = false;

	protected String tags;

	public Long getArticleId() {
		return articleId;
	}

	public void setArticleId(Long articleId) {
		this.articleId = articleId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getByline() {
		return byline;
	}

	public void setByline(String byline) {
		this.byline = byline;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getDisplayDate() {
		return displayDate;
	}

	public void setDisplayDate(Date displayDate) {
		this.displayDate = displayDate;
	}

	public Date getDisplayTime() {
		return displayTime;
	}

	public void setDisplayTime(Date displayTime) {
		this.displayTime = displayTime;
	}

	public boolean isReplyable() {
		return replyable;
	}

	public void setReplyable(boolean replyable) {
		this.replyable = replyable;
	}

	public boolean isAnnouncement() {
		return announcement;
	}

	public void setAnnouncement(boolean announcement) {
		this.announcement = announcement;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public boolean isDelete() {
		return delete;
	}

	public void setDelete(boolean delete) {
		this.delete = delete;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

}
